package gaml.java.serializer.collection;

import gaml.error.GamlException;
import gaml.java.ClassSerializerStore;

import java.util.TreeMap;


/**
 * serialize TreeMap into mapping node,
 * restore TreeMap from mapping node
 * @author shnireck
 *
 */
public class TreeMapSerializer extends MapSerializer <TreeMap <Object, Object>> {

	public TreeMapSerializer (ClassSerializerStore store) { super (store); }

	@Override
	public TreeMap <Object, Object> createObject () throws GamlException { return new TreeMap <Object, Object> (); }

	@Override
	public Class <TreeMap <Object, Object>> getObjectClass () { return (Class <TreeMap <Object, Object>>) new TreeMap <Object, Object> ().getClass (); }

}
